<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;

$this->title = Yii::t('app', 'Product Rooms');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="product-room-index">
    <h2 class="page-header">
        <?= Html::encode($this->title) ?>
        <p class="pull-right">
            <?= Html::a(Yii::t('app', 'Create Product Room'), ['create'], ['class' => 'btn btn-success']) ?>
        </p>
    </h2>

<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<?php Pjax::begin(); ?>    
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            //'id',
            'room_id',
            'price',
            'inside_price',
            // 'user_id',
            // 'created_at',
            'updated_at:relativeTime',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
<?php Pjax::end(); ?></div>
